package com.cofey.app;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cofey on 16/6/3.
 */
@RestController
@RefreshScope
public class IndexController {
    @Value("${app.env}")
    private String env;
    @RequestMapping(value = "/welcome")
    public String welcome() {
        return "welcome app2 " + env;
    }
}
